<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
	<title>class PlayerFLVMP3</title>
	<style type="text/css">
	/* ZenDoc identity */
	.zendoc { font-family: Arial, Helvetica, sans-serif; margin:3px; }
	.zendoc a:hover { text-decoration:none; }
	.zendoc span.title-comment { font-family: Verdana, Arial, Helvetica, sans-serif; font-size:80%; color:#AAA; }
	.zendoc span.title-zen { color:#26A; font-weight:normal; }
	.zendoc span.title-doc { color:black; font-weight:bold; }
	/* overall */
	html, body, div { margin:0; padding:0; border:none; }
	body { font-family:Arial, Helvetica, sans-serif; font-size:90%; }
	a { text-decoration:none; }
	a:hover { text-decoration:underline; }
	h2 { color:#999; margin:2em 0 0 0; padding:0 2px 0 20px; border-bottom:2px solid #58B; }
	h3 { color:#B36B00; margin-top:3em; }
	dl { margin:.5em 0 3px 0; }
	dt { font-weight:bold; }
	td { vertical-align:top; }
	th { text-align:left; color:#58B; background-color:#E3ECF4; }
	code { font-size:1.1em; }
	/* specific */
	#header { background-color:#EAEAEA; padding:1px; }
	#links { color:#999; background-color:#FFE; border-bottom:1px solid #58B; padding:2px 20px; }
	#links a { color:#999; }
	.content { padding:10px 20px; }
	#class-definition { background-color:#58B; color:white; }
	#class-definition .classkind { font-weight:bold; }
	#class-definition .classkind .package { font-weight:normal; }
	#class-definition .classname { font-size:4em; margin:5px 0; }
	#class-definition .superclassname { padding-left:20px; font-style:italic; }
	#class-definition .implements { padding-left:20px; font-style:italic; }
	#class-info .content { margin:20px; border:1px solid #58B; }
	pre.definition { background-color:#FFE; border:1px solid #E4E29A; padding:3px; }
	.generated {
		font-style:italic;
		font-size:80%;
		color:#666;
		margin:1em 0 0 0;
		padding:5px 20px;
		border-top:1px solid #999;
	}
	/* tables */
	.member-list { border:1px solid #58B; margin:2em 20px; }
	.member-list a { color:#B36B00; }
	.member-list table { border-collapse:collapse; }
	.member-list td { border-top:1px solid #58B; }
	.member-list td.name { width:175px; text-align:right; padding-right:5px; }
	.member-list table { width:100%; }
	.even { background-color:#FFE; }
	.odd { background-color:white; }
	.param .name { color:#666; }
	</style>
</head>

<body>
<div id="page">
	<div id="header">
		<h4 class="zendoc"><a href="http://www.zendoc.org" title="ZenDoc Documentation Tool Home"><span class="title-comment">/**</span><span class="title-zen">Zen</span><span class="title-doc">Doc</span><span class="title-comment">--&gt;</span></a></h4>
	</div>
	<div id="class-definition" class="section">
		<div class="content">
			
			<div class="classkind">class <span class="package"></span></div>
			<h1 class="classname">PlayerFLVMP3</h1>
			
			<div class="superclassname">Extends: Sprite</div>
			
		</div>
		<div id="links">
			<a href="#class-info">Class Information</a>
			 | <a href="#class-constructors">Constructors</a>
			 | <a href="#class-properties">Properties</a>
			 | <a href="#class-methods">Methods</a>
			
		</div>
	</div>
	
	<div id="class-info" class="section">
		<h2>Class Information</h2>
		<div class="content">
			
				<dl>
					
					<dt>Version</dt>
					<dd>1.0</dd>
					
					<dt>Description</dt>
					<dd>Player of flv and mp3.</dd>
					
					<dt>Usage</dt>
					<dd>var myPlayer:PlayerFLVMP3 = new PlayerFLVMP3(player);<br />myPlayer.load("test.flv");<br /><br />myPlayer.addEventListener("onComplete", onComplete);<br />myPlayer.addEventListener("onMetaData", onMetaData);<br />myPlayer.addEventListener("onCuePoint", onCuePoint);<br />myPlayer.addEventListener("onNetStatus", onNetStatus);<br /><br />function onComplete(event:Event){<br />trace("lecture du média fini");<br />}<br /><br />function onCuePoint(event:Event){<br />trace("onCuePoint");<br />trace(myPlayer.infoCuePoint);<br />}<br /><br />function onMetaData(event:Event){<br />trace("onMetaData");<br />trace(myPlayer.infoMetaData);<br />}<br />function onNetStatus(event:Event){<br />trace("onNetStatus");<br />trace(myPlayer.infoNetStatus);<br />}</dd>
					
				</dl>
			
			
			</div>
			
			
			<div class="member-list">
			<table><tr><th colspan="2">Constructors</th></tr>
				<tr class="even">
					<td class="name"><a href="#PlayerFLVMP3">PlayerFLVMP3()</a></td>
					<td>Create an instance of PlayerFLVMP3</td>
				</tr>
			</table></div>
			
			
			<div class="member-list">
			<table><tr><th colspan="2">Properties</th></tr>
				<tr class="even">
					<td class="name"><a href="#infoMetaData">infoMetaData</a></td>
					<td>The metadata of the media. It defined when the Event onMetaData is dispatch</td>
				</tr><tr class="odd">
					<td class="name"><a href="#infoCuePoint">infoCuePoint</a></td>
					<td>The current object cuePoint of the media. It defined when the Event onCuePoint is dispatch</td>
				</tr><tr class="even">
					<td class="name"><a href="#infoNetStatus">infoNetStatus</a></td>
					<td>The current netStatus of the media</td>
				</tr><tr class="odd">
					<td class="name"><a href="#clip">clip</a></td>
					<td>The clip asset of the player</td>
				</tr><tr class="even">
					<td class="name"><a href="#containerWidth">containerWidth</a></td>
					<td>The container screen width</td>
				</tr><tr class="odd">
					<td class="name"><a href="#containerHeight">containerHeight</a></td>
					<td>The container screen height</td>
				</tr><tr class="even">
					<td class="name"><a href="#autoplay">autoplay</a></td>
					<td>Indicate if the media start automatically</td>
				</tr><tr class="odd">
					<td class="name"><a href="#bufferTime">bufferTime</a></td>
					<td>The buffer length</td>
				</tr><tr class="even">
					<td class="name"><a href="#typeMedia">typeMedia</a></td>
					<td>To set the type of media</td>
				</tr><tr class="odd">
					<td class="name"><a href="#volume">volume</a></td>
					<td>The volume of the media</td>
				</tr>
			</table></div>
			
			
			<div class="member-list">
			<table><tr><th colspan="2">Methods</th></tr>
				<tr class="even">
					<td class="name"><a href="#play">play()</a></td>
					<td>Start the media</td>
				</tr><tr class="odd">
					<td class="name"><a href="#stop">stop()</a></td>
					<td>Stop the media</td>
				</tr><tr class="even">
					<td class="name"><a href="#pause">pause()</a></td>
					<td>Pause the media</td>
				</tr><tr class="odd">
					<td class="name"><a href="#init">init()</a></td>
					<td>Initilize the Player</td>
				</tr><tr class="even">
					<td class="name"><a href="#load">load()</a></td>
					<td>Load a media in the player</td>
				</tr><tr class="odd">
					<td class="name"><a href="#setScaleScreen">setScaleScreen()</a></td>
					<td>To set the scale of the screen</td>
				</tr><tr class="even">
					<td class="name"><a href="#gotoMilliseconds">gotoMilliseconds()</a></td>
					<td>Seek to the milliseconds of the media</td>
				</tr>
			</table></div>
			
			
	</div>
		
	<br />
	
	<div id="class-constructors" class="member-group section">
		<h2>Constructors</h2>
		<div class="content">
			<div class="member-item">
				<h3 id="PlayerFLVMP3">PlayerFLVMP3()</h3>
				<pre class="definition"><code>function PlayerFLVMP3(playerMC:MovieClip)</code></pre>
				<div>Create an instance of PlayerFLVMP3</div>
				<dl>
					<dt>Parameters:</dt>
					<dd><table class="param">
						<tr><td class="name"><code>playerMC</code></td><td>The clip asset of the player</td></tr>
					</table></dd>
				</dl>
				
				
			
			
			
			
			</div>
		</div>
	</div>
	<br />
	<div id="class-properties" class="member-group section">
		<h2>Properties</h2>
		<div class="content">
			<div class="member-item">
				<h3 id="infoMetaData">infoMetaData</h3>
				<pre class="definition"><code>public var infoMetaData:Object</code></pre>
				<div>The metadata of the media. It defined when the Event onMetaData is dispatch</div>
				
			
			
			
			
			</div>
		</div><div class="content">
			<div class="member-item">
				<h3 id="infoCuePoint">infoCuePoint</h3>
				<pre class="definition"><code>public var infoCuePoint:Object</code></pre>
				<div>The current object cuePoint of the media. It defined when the Event onCuePoint is dispatch</div>
				
			
			
			
			
			</div>
		</div><div class="content">
			<div class="member-item">
				<h3 id="infoNetStatus">infoNetStatus</h3>
				<pre class="definition"><code>public var infoNetStatus:Object</code></pre>
				<div>The current netStatus of the media</div>
				
			
			
			
			
			</div>
		</div><div class="content">
			<div class="member-item">
				<h3 id="clip">clip</h3>
				<pre class="definition"><code>public function get clip():MovieClip</code></pre>
				<div>The clip asset of the player</div>
				
			
			
			
			
			</div>
		</div><div class="content">
			<div class="member-item">
				<h3 id="containerWidth">containerWidth</h3>
				<pre class="definition"><code>public function get containerWidth():Number</code></pre>
				<div>The container screen width</div>
				
			
			
			
			
			</div>
		</div><div class="content">
			<div class="member-item">
				<h3 id="containerHeight">containerHeight</h3>
				<pre class="definition"><code>public function get containerHeight():Number</code></pre>
				<div>The container screen height</div>
				
			
			
			
			
			</div>
		</div><div class="content">
			<div class="member-item">
				<h3 id="autoplay">autoplay</h3>
				<pre class="definition"><code>public function set autoplay(value:Boolean)</code></pre>
				<div>Indicate if the media start automatically</div>
				
			
			
			
			
			</div>
		</div><div class="content">
			<div class="member-item">
				<h3 id="bufferTime">bufferTime</h3>
				<pre class="definition"><code>public function set bufferTime(value:Number)<br />public function get bufferTime():Number</code></pre>
				<div>The buffer length</div>
				
			
			
			
			
			</div>
		</div><div class="content">
			<div class="member-item">
				<h3 id="typeMedia">typeMedia</h3>
				<pre class="definition"><code>public function set typeMedia(value:String)</code></pre>
				<div>To set the type of media</div>
				
			
			
			
			
			</div>
		</div><div class="content">
			<div class="member-item">
				<h3 id="volume">volume</h3>
				<pre class="definition"><code>public function set volume(value:Number)<br />public function get volume():Number</code></pre>
				<div>The volume of the media</div>
				
			
			
			
			
			</div>
		</div>
	</div>
	<br />
	<div id="class-methods" class="member-group section">
		<h2>Methods</h2>
		<div class="content">
			<div class="member-item">
				<h3 id="play">play()</h3>
				<pre class="definition"><code>public function play():void</code></pre>
				<div>Start the media</div>
				
				
				
			
			
			
			
			</div><div class="member-item">
				<h3 id="stop">stop()</h3>
				<pre class="definition"><code>public function stop():void</code></pre>
				<div>Stop the media</div>
				
				
				
			
			
			
			
			</div><div class="member-item">
				<h3 id="pause">pause()</h3>
				<pre class="definition"><code>public function pause():void</code></pre>
				<div>Pause the media</div>
				
				
				
			
			
			
			
			</div><div class="member-item">
				<h3 id="init">init()</h3>
				<pre class="definition"><code>public function init()</code></pre>
				<div>Initilize the Player</div>
				
				
				
			
			
			
			
			</div><div class="member-item">
				<h3 id="load">load()</h3>
				<pre class="definition"><code>public function load(url:String)</code></pre>
				<div>Load a media in the player</div>
				<dl>
					<dt>Parameters:</dt>
					<dd><table class="param">
						<tr><td class="name"><code>url</code></td><td>Url of the flv or the mp3</td></tr>
					</table></dd>
				</dl>
				
				
			
			
			
			
			</div><div class="member-item">
				<h3 id="setScaleScreen">setScaleScreen()</h3>
				<pre class="definition"><code>public function setScaleScreen(w:Number,h:Number)</code></pre>
				<div>To set the scale of the screen</div>
				<dl>
					<dt>Parameters:</dt>
					<dd><table class="param">
						<tr><td class="name"><code>w</code></td><td>Width of the screen</td></tr>
					<tr><td class="name"><code>h</code></td><td>Height of the screen</td></tr>
					</table></dd>
				</dl>
				
				
			
			
			
			
			</div><div class="member-item">
				<h3 id="gotoMilliseconds">gotoMilliseconds()</h3>
				<pre class="definition"><code>public function gotoMilliseconds(millisecond:Number)</code></pre>
				<div>Seek to the milliseconds of the media</div>
				<dl>
					<dt>Parameters:</dt>
					<dd><table class="param">
						<tr><td class="name"><code>millisecond</code></td><td>Time in milliseconds</td></tr>
					</table></dd>
				</dl>
				
				
			
			
			
			
			</div>
		</div>
	</div>
	
	<p class="generated">Page generated: 7:38 pm on June 7, 2010</p>
</div>
</body>
</html>